//获取数据类型


function getType(type:any) {
    let originType = Object.prototype.toString.call(type)


    let index = originType.indexOf(' ')

    let res = originType.slice(index+1, -1)
    console.log("hhh=>",res)

    return res.toLowerCase()
}

console.log("getType",getType([]))

